package model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "VILLE_AVION")
public class VilleAvion {
	private String codeville;
	private String nomVille;

	public VilleAvion() {
	}

	@Id
	@Column(name = "VILLE_ID")
	public String getCodeville() {
		return codeville;
	}

	public void setCodeville(String codeville) {
		this.codeville = codeville;
	}

	@Column(name = "NOM_VILLE")
	public String getNomVille() {
		return nomVille;
	}

	public void setNomVille(String nomVille) {
		this.nomVille = nomVille;
	}

	public VilleAvion(String codeville, String nomVille) {
		this.codeville = codeville;
		this.nomVille = nomVille;
	}

	public VilleAvion(String codeville) {
		super();
		this.codeville = codeville;
	}

}
